package com.yonyou.pmclouds.basecom.dao.query;

import lombok.Data;

import java.io.Serializable; 
 
/**
 * @author zm 
 */ 
@Data 
public class Sort implements Serializable { 
 
    private static final long serialVersionUID = 7026434198845897214L; 
    private String property; 
    private String tableAlias; 
    private String column; 
    private Direction direction; 
 
    public Sort() { 
        super(); 
        direction = Direction.ASC; 
    } 
 
    public Sort(String property) { 
        this(); 
        this.property = property; 
    } 
 
    public Sort(String property, Direction direction) { 
        this(); 
        this.property = property; 
        this.direction = direction; 
    }

    public enum Direction {
        ASC, DESC
    } 
 
}